/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frames;

import java.util.Random;
import javax.swing.ImageIcon;

/**
 *
 * @author Jesus
 */
public class Mostradores extends javax.swing.JFrame {

    /**
     * Creates new form Mostradores
     */
    public Mostradores() {
        initComponents();
        this.setSize(870, 450);
        setResizable(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        _nombre = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();

        setTitle("Mostradores");
        getContentPane().setLayout(null);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/vestidores.jpg"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 50, 211, 370);

        _nombre.setText("jLabel2");
        _nombre.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        getContentPane().add(_nombre);
        _nombre.setBounds(0, 0, 200, 60);
        _nombre.getAccessibleContext().setAccessibleName("_nombre");

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/vestidores.jpg"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(210, 50, 211, 370);

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/vestidores.jpg"))); // NOI18N
        getContentPane().add(jLabel3);
        jLabel3.setBounds(420, 50, 211, 370);

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/vestidores.jpg"))); // NOI18N
        getContentPane().add(jLabel4);
        jLabel4.setBounds(630, 50, 211, 370);

        jLabel5.setText("jLabel5");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(220, 0, 180, 50);

        jLabel6.setText("jLabel6");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(440, 0, 180, 50);

        jLabel7.setText("jLabel7");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(640, 0, 190, 50);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Mostradores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Mostradores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Mostradores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Mostradores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Mostradores().setVisible(true);
            }
        });
    }
    public void mostar_h1(char tipo,int babero){
        Random r = new Random();
        int numero = r.nextInt(4)+1;
        switch(tipo){
            case 'E':
                jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"he.png")));
                _nombre.setText("Toga y Birrete Especialista");
                break;
            case 'M':
                jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hp.png")));
                _nombre.setText("Toga y Birrete Magister");
                break;
            case 'C':
                jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hs.png")));
                _nombre.setText("Toga y Birrete Toga Suma Cumlaude");
                break;
            case 'N':
                if(babero==0){
                    jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"h.png")));
                    _nombre.setText("Toga y Birrete Negro");
                }else{
                    if(babero==1){
                        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hc.png")));
                        _nombre.setText("Toga y Birrete Cumlaude");
                    }else{
                        if(babero==2){
                            jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hm.png")));
                            _nombre.setText("Toga y Birrete Magna Cumlaude");
                        }
                    }
                }
                break;
        }
    }
    public void mostar_h2(char tipo,int babero){
        Random r = new Random();
        int numero = r.nextInt(4)+1;
        switch(tipo){
            case 'E':
                jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"he.png")));
                jLabel5.setText("Toga y Birrete Especialista");
                break;
            case 'M':
                jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hp.png")));
                jLabel5.setText("Toga y Birrete Magister");
                break;
            case 'C':
                jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hs.png")));
                jLabel5.setText("Toga y Birrete Toga Suma Cumlaude");
                break;
            case 'N':
                if(babero==0){
                    jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"h.png")));
                    jLabel5.setText("Toga y Birrete Negro");
                }else{
                    if(babero==1){
                        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hc.png")));
                        jLabel5.setText("Toga y Birrete Cumlaude");
                    }else{
                        if(babero==2){
                            jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"hm.png")));
                            jLabel5.setText("Toga y Birrete Magna Cumlaude");
                        }
                    }
                }
                break;
        }
    }
    public void mostar_m1(char tipo,int babero){
        Random r = new Random();
        int numero = r.nextInt(4)+1;
        switch(tipo){
            case 'E':
                jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"me.png")));
                jLabel6.setText("Toga y Birrete Especialista");
                break;
            case 'M':
                jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"mp.png")));
                jLabel6.setText("Toga y Birrete Magister");
                break;
            case 'C':
                jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"ms.png")));
                jLabel6.setText("Toga y Birrete Toga Suma Cumlaude");
                break;
            case 'N':
                if(babero==0){
                    jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"m.png")));
                    jLabel6.setText("Toga y Birrete Negro");
                }else{
                    if(babero==1){
                        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"mc.png")));
                        jLabel6.setText("Toga y Birrete Cumlaude");
                    }else{
                        if(babero==2){
                            jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"mm.png")));
                            jLabel6.setText("Toga y Birrete Magna Cumlaude");
                        }
                    }
                }
                break;
        }
    }
    public void mostar_m2(char tipo,int babero){
        Random r = new Random();
        int numero = r.nextInt(4)+1;
        switch(tipo){
            case 'E':
                jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"me.png")));
                jLabel7.setText("Toga y Birrete Especialista");
                break;
            case 'M':
                jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"mp.png")));
                jLabel7.setText("Toga y Birrete Magister");
                break;
            case 'C':
                jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"ms.png")));
                jLabel7.setText("Toga y Birrete Toga Suma Cumlaude");
                break;
            case 'N':
                if(babero==0){
                    jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"m.png")));
                    jLabel7.setText("Toga y Birrete Negro");
                }else{
                    if(babero==1){
                        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"mc.png")));
                        jLabel7.setText("Toga y Birrete Cumlaude");
                    }else{
                        if(babero==2){
                            jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/recursos/imagenes/imagenes/"+numero+"mm.png")));
                            jLabel7.setText("Toga y Birrete Magna Cumlaude");
                        }
                    }
                }
                break;
        }
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel _nombre;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    // End of variables declaration//GEN-END:variables
}
